package cn.itacm.pattern.creational.abstractFactory;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		AbstractFactory factory = new FactoryA();
		System.out.println(factory.createProductA().change());
		System.out.println(factory.createProductB().run());
		
		factory = new FactoryB();
		System.out.println(factory.createProductA().change());
		System.out.println(factory.createProductB().run());
	}

}
